<?php
if (!defined('BASEPATH'))
	exit('No direct script access allowed');
$this->load->view('header');
?>
<section class="container_12 clearfix" id="main">
	<section class="grid_9" id="container">
		<ol class="album_list">
			<?php foreach ($albums as $v): ?>
				<li>
					<p>
						<a href="/albums/view/<?php echo $v->ID; ?>">
							<?php if ($v->album_cover): ?>
								<img src="/upload/<?php echo $v->album_cover; ?>" />
							<?php else: ?>
								<img src="/images/no_img.jpg" alt="no cover"/>
							<?php endif; ?>
						</a>
					</p>
					<p>
						<a href="/albums/view/<?php echo $v->ID; ?>"><?php echo $v->album_name; ?></a>
					</p>
				</li>
			<?php endforeach; ?>
		</ol>
		<?php echo $this->pagination->create_links(); ?>
	</section>
	<?php $this->load->view('sidebar'); ?>
</section>
<?php
$this->load->view('footer');